package com.duck.communication.service;

import com.duck.communication.domain.dto.PostInfoDto;

import java.util.HashMap;
import java.util.List;

public interface PostService {

    Integer publishPost(HashMap<String, Object> post);

    List<HashMap<String,Object>>getAllPost();

    List<HashMap<String,Object>>getPostByUserId(String userId);

    Integer updatePost(HashMap<String,Object> info);

    List<HashMap<String,Object>> selectCategory();

    PostInfoDto searchPostInfo(String postId);
}
